package com.suke.czx.modules.examstack.exam.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.suke.czx.modules.examstack.exam.dao.TrainingDao;
import com.suke.czx.modules.examstack.exam.entity.TrainingEntity;
import com.suke.czx.modules.examstack.exam.service.TrainingService;



@Service("trainingService")
public class TrainingServiceImpl implements TrainingService {
	@Autowired
	private TrainingDao trainingDao;
	
	@Override
	public TrainingEntity queryObject(Integer trainingId){
		return trainingDao.queryObject(trainingId);
	}
	
	@Override
	public List<TrainingEntity> queryList(Map<String, Object> map){
		return trainingDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return trainingDao.queryTotal(map);
	}
	
	@Override
	public void save(TrainingEntity training){
		trainingDao.save(training);
	}
	
	@Override
	public void update(TrainingEntity training){
		trainingDao.update(training);
	}
	
	@Override
	public void delete(Integer trainingId){
		trainingDao.delete(trainingId);
	}
	
	@Override
	public void deleteBatch(Integer[] trainingIds){
		trainingDao.deleteBatch(trainingIds);
	}
	
}
